var Stats = require('./stats'),
    Images = require('./images'),
    Comments = require('./comments');

module.exports = function (viewModel, callback) {
    //将sidebar加入viewModel对象中。
    viewModel.sidebar = {
        stats: Stats(),
        popular: Images.popular(),
        comments: Comments.newest()
    };
    callback(viewModel);
}
